export default function(fm,e) {
  if (!e || e.length <=1) return fm
  e.forEach(item => {
    item.position =  new TMap.LatLng(item.latitude, item.longitude)
  });

  var bounds = new TMap.LatLngBounds();
  function showMarker(){
    e.forEach(function(item){
      if(bounds.isEmpty() || !bounds.contains(item.position)){
        bounds.extend(item.position);
      }
    })
    fm.map.fitBounds(bounds, {
      padding: 150
    })
  }
  showMarker()
  return fm
}